#! /usr/bin/env python
# -*- coding: utf-8
import rospy
from plumbing_pub_sub.msg import Person

if __name__=="__main__":
    rospy.init_node("laoShi")

    pub = rospy.Publisher("liaoTian",Person,queue_size=10)

    msg = Person()
    msg.name = "sansan"
    msg.edge = 0
    msg.height= 1.6
    rate = rospy.Rate(1)

    count = 0
    while not rospy.is_shutdown():
        count +=1
        msg.edge = count
        pub.publish(msg)

        rate.sleep()
